package com.cskaoyan.chapter0501.chapter050101;

import com.cskaoyan.chapter0501.common.Employee;

import java.math.BigDecimal;

/**
 * @Author:WalterChan
 * @Decription:Manager
 * @Date Created in 2024-05-19-16:15
 */
public class Manager extends Employee {
    private BigDecimal bonus;

    public BigDecimal getBonus() {
        return bonus;
    }

    public void setBonus(BigDecimal bonus) {
        this.bonus = bonus;
    }
    public   BigDecimal getSalary(){
        return this.bonus.add(super.getSalary());
    }

    public Manager(BigDecimal bonus) {
        super("张三",BigDecimal.ZERO,null);
        this.bonus = bonus;
    }
}
